package com.ccnf.service;

import com.ccnf.model.entity.InvitationReward;
import com.ccnf.model.entity.RewardPrize;
import com.ccnf.model.pojo.PrizeVo;

import java.util.List;

public interface RewardService {

    /**
     * 定时任务执行赏金赚取逻辑
     */
    void handleRewardRecord(long zeroTime);

    /**
     * 查询邀请函的所有奖励列表
     * @param invitationId
     */
    List<InvitationReward> findRewardByInvitationId(Long invitationId);

    /**
     * 查询邀请函获奖的用户名单列表
     * @param invitationId 邀请函ID
     */
    List<PrizeVo> findWinnerUserList(Long invitationId);

    /**
     * 查看用户在邀请函中获取的实物奖品二维码数据
     * @param invitationId 邀请函ID
     * @param userId 用户ID
     */
    RewardPrize findUserPrize(Long invitationId, Long userId);

    RewardPrize findPrizeByPrizeId(Long prizeId);

    void modifyPrizeByPrizeId(RewardPrize rewardPrize);
}